<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="jquery-3.3.1.min.js"></script>
    <style>
        .close-btn {
            width: 20px;
            height: 20px;
            width: 10px;
            height: 10px;
            border: 1px solid black;
            font-size: 20px;
        }
        
        .box {
            width: 200px;
            height: 200px;
            margin: 0 auto;
            margin-top: 30px;
        }
    </style>
</head>

<body>
    <div class="box">
        <i class="close-btn">×</i>
        <img src="WPS图片编辑.png" alt="">

    </div>
    <script>
        $(".close-btn").click(function() {
            $(".box").css("display", "none");
        });
    </script>
</body>

</html>